package com.teemo.dp.builder.demo1;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) {
        ComputerBuilder computerBuilder = new DesktopComputerBuilder();
        Director director = new Director();
        director.setComputerBuilder(computerBuilder);
        Computer computer1 = director.construct();

        LaptopComputerBuilder laptopComputerBuilder = new LaptopComputerBuilder();
        director.setComputerBuilder(laptopComputerBuilder);
        Computer computer2 = director.construct();
    }
}
